//
//  SCAudioMediaPlayerView.h
//  Pods
//
//  Created by Chao Sheng on 2021/12/20.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


typedef enum {
    SCAudioMediaControlExam = 0, //考试
    SCAudioMediaControlPractice, //练习

} SCAudioMediaControlType;

@interface SCAudioMediaPlayerView : UIView

- (instancetype)initWithControlType:(SCAudioMediaControlType)type QuesAudio:(NSString*)auidoURL QuesTitle:(NSString*)title AddAudioInitNotification:(void(^)(id obj))addAudioNotification;

- (void)play;

- (void)pause;

/// 初始化播放数据，播放前必须调用此方法才能正常播放
- (void)startInitAudioData;

@end

NS_ASSUME_NONNULL_END
